package com.yf1706.bean;

import java.io.Serializable;
import javax.persistence.*;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.Date;
import java.util.List;


/**
 * The persistent class for the check_holiday_kind database table.
 * 
 */
@Entity
@Table(name="check_holiday_kind")
@NamedQuery(name="CheckHolidayKind.findAll", query="SELECT c FROM CheckHolidayKind c")
public class CheckHolidayKind implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="holiday_id")
	private int holidayId;

	@Column(name="holiday_name")
	private String holidayName;

	@Temporal(TemporalType.DATE)
	@Column(name="make_time")
	private Date makeTime;

	private String maker;

	@Column(name="personage_holiday")
	private String personageHoliday;

	private String remark;

	private String state;

	@Column(name="statutory_holiday")
	private String statutoryHoliday;

	@Column(name="system_use")
	private String systemUse;

	@Column(name="update_emp")
	private String updateEmp;

	@Temporal(TemporalType.DATE)
	@Column(name="update_time")
	private Date updateTime;

	@Column(name="whether_salary")
	private String whetherSalary;
	
	@OneToMany(mappedBy="checkHolidayKind")
	@JSONField(serialize = false)
	private List<CheckCalendarAffair> checkCalendarAffairs;
	public List<CheckCalendarAffair> getCheckCalendarAffairs() {
		return checkCalendarAffairs;
	}

	public void setCheckCalendarAffairs(List<CheckCalendarAffair> checkCalendarAffairs) {
		this.checkCalendarAffairs = checkCalendarAffairs;
	}

	public CheckHolidayKind() {
	}

	public int getHolidayId() {
		return this.holidayId;
	}

	public void setHolidayId(int holidayId) {
		this.holidayId = holidayId;
	}

	public String getHolidayName() {
		return this.holidayName;
	}

	public void setHolidayName(String holidayName) {
		this.holidayName = holidayName;
	}

	public Date getMakeTime() {
		return this.makeTime;
	}

	public void setMakeTime(Date makeTime) {
		this.makeTime = makeTime;
	}

	public String getMaker() {
		return this.maker;
	}

	public void setMaker(String maker) {
		this.maker = maker;
	}

	public String getPersonageHoliday() {
		return this.personageHoliday;
	}

	public void setPersonageHoliday(String personageHoliday) {
		this.personageHoliday = personageHoliday;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getState() {
		return this.state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getStatutoryHoliday() {
		return this.statutoryHoliday;
	}

	public void setStatutoryHoliday(String statutoryHoliday) {
		this.statutoryHoliday = statutoryHoliday;
	}

	public String getSystemUse() {
		return this.systemUse;
	}

	public void setSystemUse(String systemUse) {
		this.systemUse = systemUse;
	}

	public String getUpdateEmp() {
		return this.updateEmp;
	}

	public void setUpdateEmp(String updateEmp) {
		this.updateEmp = updateEmp;
	}

	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getWhetherSalary() {
		return this.whetherSalary;
	}

	public void setWhetherSalary(String whetherSalary) {
		this.whetherSalary = whetherSalary;
	}

}